package com.demo9;

public class SystemInfo {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        for (int i=0;i<1000001;i++){
            System.out.println("i:"+i);
        }
        long end = System.currentTimeMillis();
        System.out.println("循环100万次需要的时间是"+(end-start)+"ms");
    }
}
